<{include file="admin:common/header.html"}>
<div class="page-title">
    <table width="100%" align="center" cellpadding="0" cellspacing="0" >
      <tr>
        <td width="30" align="right"><img src="<{$pager.url}>/images/main-h5-ico.gif" alt="" /></td>
        <th><{$MOD.title}></th>
        <td align="right"><{link ctl="zxb/step:index" priv="hidden" class="button"}></td>
        <td width="15"></td>
      </tr>
    </table>
</div>
<div class="page-data"><form action="?zxb/step-create-<{$detail.zxb_id}>.html" mini-form="step-form" method="post" ENCTYPE="multipart/form-data">
<table width="100%" border="0" cellspacing="0" class="table-data form">
<div class="tip-notice">
        <b>当前位置</b>：装修保ID：<{$detail.zxb_id}>  &nbsp;&nbsp;&nbsp;&nbsp; 联系人：<{$detail.contact}> &nbsp;&nbsp;&nbsp;&nbsp;  联系电话：<{$detail.mobile}>
    </div>

<input type="hidden" name="data[zxb_id]" value="<{$detail.zxb_id}>" id="site_zxb_id"  class="input w-150" />
<input type="hidden" name="data[company_id]" value="<{$detail.company_id}>" id="site_zxb_id"  class="input w-150" />
<input type="hidden" name="data[uid]" value="<{$detail.uid}>" id="site_zxb_id"  class="input w-150" />
<tr><th>装修保ID</th><td><{$detail.zxb_id}></td></tr>
<tr><th>业主名称</th><td><{$member.uname}></td></tr>
<tr><th>公司名称</th><td><{$company.title}></td></tr>
<tr><th><span class="red">*</span>步骤：</th><td>
	<select name = 'data[step]' class="input w-100">
        <{foreach $status as $k => $v}>
            <option value="<{$k}>"><{$v}></option>
        <{/foreach}>
	</select>

</td></tr>
<tr><th>业主上传证据：</th><td><input type="text" name="data[yezhu_photo]" value="<{$detail.yezhu_photo}>" <{if $detail.yezhu_photo}>photo="<{$pager.img}>/<{$detail.yezhu_photo}>"<{/if}> class="input w-300" />&nbsp;&nbsp;&nbsp;<input type="file" name="data[yezhu_photo]" class="input w-100" /></td></tr>
<tr><th>业主描述内容：</th><td><textarea name="data[yezhu_content]" class="textarea"><{$detail.yezhu_content}></textarea><br /></td></tr>
<tr>
	<th>业主状态</th>
	<td>
    	<label><input type="radio" name="data[yezhu_status]" checked="checked" value="1"/>是</label>&nbsp;&nbsp;
		<label><input type="radio" name="data[yezhu_status]" value="0"/>否</label>
	</td>
</tr>
<tr><th>业主签订时间：</th><td><input type="text" name="data[yezhu_time]" value="<{$detail.yezhu_time|default:''}>" class="input w-100" date="yezhu_time" readonly/></td></tr>
<tr><th>公司描述内容：</th><td><textarea name="data[company_content]" kindeditor="full" class="textarea"><{$detail.company_content}></textarea><br /></td></tr>
<tr>
	<th>公司状态</th>
	<td>
    	<label><input type="radio" name="data[company_status]" checked="checked" value="1"/>是</label>&nbsp;&nbsp;
		<label><input type="radio" name="data[company_status]" value="0"/>否</label>
	</td>
</tr>
<tr><th>公司签订时间：</th><td><input type="text" name="data[company_time]" value="<{$detail.company_time|default:''}>" class="input w-100" date="company_time" readonly/></td></tr>
<tr>
	<th>平台确认</th>
	<td>
    	<label><input type="radio" name="data[status]" checked="checked" value="1"/>是</label>&nbsp;&nbsp;
		<label><input type="radio" name="data[status]" value="0"/>否</label>
	</td>
</tr>
    <tr><th class="clear-th-bottom"></th><td class="clear-td-bottom" colspan="10"><input type="submit" class="bt-big" value="提交数据" /></td></tr>
</table>
</form></div>
<script type="text/javascript" src="<{$pager.res}>/kindeditor/kindeditor.js"></script>
<script type="text/javascript">
(function(K, $){
var editor = KindEditor.create('textarea[kindeditor]', {uploadJson : '?magic/upload-editor.html', extraFileUploadParams:{OATOKEN:"<{$OATOKEN}>"}});
})(window.KT, window.jQuery);
</script> 
<script type="text/javascript">
(function(K, $){
$("select[name='data[city_id]']").live('change', function(){
	var city_id = $(this).val();
	if(!city_id){return false;}
	$.getJSON("?data/area-city-"+city_id+".html", function(ret){
		if(ret.error){
			Widget.MsgBox.error(ret.message.join(","));
		}else if(ret.areas.length>0){
			var html = "";
			for(var i=0; i<ret.areas.length; i++){
				html += '<option value="'+ret.areas[i].area_id+'">'+ret.areas[i].area_name+'</option>';
			}
			$("select[name='data[area_id]']").html(html);		
		}else{
			$("select[name='data[area_id]']").html('<option value="">--</option>');
		}
	});
}).trigger("change");
})(window.KT, window.jQuery);
</script>
<{include file="admin:common/footer.html"}>